//Gets part or all of the screen.

/*
Argument	Description	    Default
x	 	      0
y	 	      0
width     Screen width
height	 	Screen height
*/

//If no arguments are provided, screen.capture will get the full screen.

//Return
//Returns a bitmap object.
const robot = require('robotjs')
var size = 10;
var img = robot.screen.capture(0, 0, size, size);
// Support for higher density screens.
var multi = img.width / size;
// Get color at 2, 3.
var color = img.colorAt(2 * multi, 3 * multi);
/*
Gets the pixel color at x, y of a bitmap.

Argument	Description	Default
x	 	      None
y	 	      None
*/


console.log('color:',color);

/* Bitmap
This is an object returned by screen.capture.

Property	     Description
width	         The width of the bitmap.
height	       The height of the bitmap.
image	         The raw image (buffer).
byteWidth
bitsPerPixel
bytesPerPixel
*/
